<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_Message.aspx.cs" Inherits="Admin_Ad_Message" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Add Message</title>
     <link href="include/styles.css" rel="stylesheet" />
      <script src="..\JScript\gen_validatorv2.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" height="35"></td>
            <td width="96%" class="normalblack_12" align="center"><b>
                <asp:Label ID="lblHead" runat="server" Text="Label"></asp:Label></b></td>
            <td width="2%"></td>
          </tr>
          <tr>
            <td height="15"></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td style="height: 216px"></td>
            <td valign="top" class="normalgrey_12" style="height: 216px"> <table width="100%" border="0">
    <tr>
    <td align="right">Select Topic</td>
    <td>:</td>
    <td align="left">
    <asp:DropDownList ID="ddltopics" runat="server" Width="397px" CssClass="normal_grey12">
        </asp:DropDownList>&nbsp;<span style="color:Red">*</span></td>
    </tr>
    <tr>
    <td align="right">
        Enter Message
    </td>
    <td>:</td>
      <td style="height: 44px" align="left">
          <asp:TextBox ID="txtmessage" runat="server" Height="110px" TextMode="MultiLine" Width="397px" CssClass="normal_grey12"></asp:TextBox>&nbsp;<span style="color:Red ; vertical-align:top" >*</span></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td style="height: 17px">&nbsp;</td>
    </tr>
    <tr>
    <td align="center" style="height: 26px" colspan="3"><asp:Button id="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"></asp:Button></td>
    </tr>
    </table></td>
            <td style="height: 216px"></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td height="30" colspan="3"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>
    
    
        
    </form>
     <script>
     var frmvalidator  = new Validator("form1","btnSubmit");
      frmvalidator.addValidation("txtmessage","req","Please Enter Message");	    	
	  frmvalidator.addValidation("txtmessage","maxlength=1000","Message Maximum Length is Only 100 Characters");	
	  frmvalidator.addValidation("ddltopics","dontselect=0","Please Select Topic");
    </script>	
</body>
</html>
